let mongoose = require('./db');
let responseSchema= new mongoose.Schema({
    id: String,
    as:String,
    email:String,
    time:String,
    addTime:String,
    content:String
});


let commentSchema = new mongoose.Schema({
    email: String,
    time: String,
    addTime: String,
    content: String,
    articleId: String,
    articleTitle: String,
    pass: Boolean,
    ip: String,
    response:{
        content:String,
        time:String,
        addTime:String,
        as:String,
    }
});
let comment = mongoose.model('comment', commentSchema);
module.exports = comment;